import { provide, inject } from 'vue';

const key = Symbol('formElRef');

export function createFormContext(instance) {
    provide(key, instance);
}

export function useFormContext() {
    return inject(key);
}
